package szad.org.view;

import java.awt.Component;
import java.awt.GridLayout;

import javax.swing.JPanel;
import szad.org.model.Dao;

public class MainPanel extends JPanel {

	private static final long serialVersionUID = 1L;
	private MapPanel map;
	
	
	public MainPanel(Dao dao) {
		
		GridLayout gLayout = new GridLayout(1,2);
		this.setLayout(gLayout);
		
		map = new MapPanel(dao);
		this.add(map);
		this.add(new InformationPanel(dao));
	}
	
	public void rePaint() {
		map.rePaintTable();
		this.revalidate();
	}
	
	public MapPanel getMapPanel() {
		return map;
	}
	
	
}
